// import mockjs from "mockjs";

// mockjs.mock(/\/login/,/post/,function(option){
//     return {
//         code:0,
//         token:"lzz token",
//         msg:"登录成功",
//         user:{
//             name:"lzz"
//         }
//     }
// })

export default [
    {
        url: /\/login/,
        method: /post/,
        response: function (option) {
            const { body } = option
            return {
                code: 0,
                token: `${body.name} token`,
                msg: "登录成功",
                user: {
                    name: body.name,
                    headpic: `https://dummyimage.com/100x100/0079FE/ffffff.png&text=${body.name}`,
                }
            }
        }
    }
]